# date: 2024/1/16 10:42
# author: xqx
# description：初始化数据库

import sqlite3

conn = sqlite3.connect('milestone.db')

with open('db.sql', mode='r', encoding='utf8') as f:
    conn.executescript(f.read())

cursor = conn.cursor()

conn.commit()
conn.close()
